{"ast":null,"code":"import React from\"react\";import{observer}from\"mobx-react-lite\";import{Context}from\"../index\";import{Messages as MessagesList}from\"../components/\";import{jsx as _jsx}from\"react/jsx-runtime\";var Messages=function Messages(){var _React$useContext=React.useContext(Context),store=_React$useContext.store;if(store.getCurrentDialog().messages&&store.getViewedDialogId()!==null){return/*#__PURE__*/_jsx(MessagesList,{messages:store.getCurrentDialog().messages});}else{return/*#__PURE__*/_jsx(MessagesList,{});}};export default observer(Messages);","map":{"version":3,"names":["React","observer","Context","Messages","MessagesList","useContext","store","getCurrentDialog","messages","getViewedDialogId"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/containers/Messages.tsx"],"sourcesContent":["import React from \"react\";\nimport {observer} from \"mobx-react-lite\";\nimport {Context} from \"../index\";\nimport {Messages as MessagesList} from \"../components/\";\n\nconst Messages:React.FC = () => {\n    const {store} = React.useContext(Context);\n\n    if (store.getCurrentDialog().messages && store.getViewedDialogId() !== null) {\n        return (<MessagesList messages={store.getCurrentDialog().messages} />);\n    } else {\n        return (<MessagesList />);\n    }\n};\n\nexport default observer(Messages);"],"mappings":"AAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,OAAQC,QAAQ,KAAO,iBAAiB,CACxC,OAAQC,OAAO,KAAO,UAAU,CAChC,OAAQC,QAAQ,GAAIC,aAAY,KAAO,gBAAgB,CAAC,2CAExD,GAAMD,SAAiB,CAAG,QAApBA,SAAiB,EAAS,CAC5B,sBAAgBH,KAAK,CAACK,UAAU,CAACH,OAAO,CAAC,CAAlCI,KAAK,mBAALA,KAAK,CAEZ,GAAIA,KAAK,CAACC,gBAAgB,EAAE,CAACC,QAAQ,EAAIF,KAAK,CAACG,iBAAiB,EAAE,GAAK,IAAI,CAAE,CACzE,mBAAQ,KAAC,YAAY,EAAC,QAAQ,CAAEH,KAAK,CAACC,gBAAgB,EAAE,CAACC,QAAS,EAAG,CACzE,CAAC,IAAM,CACH,mBAAQ,KAAC,YAAY,IAAG,CAC5B,CACJ,CAAC,CAED,cAAeP,SAAQ,CAACE,QAAQ,CAAC"},"metadata":{},"sourceType":"module"}